package com.ytjj.common.enums;

import lombok.Getter;

/**
 * @author
 */

@Getter
public enum  PlatformEnum {
    GCKJ("NN","NN"),
    JMD("D","XXX"),
    YXKJ("F","XXX"),
    JZWH("H","XXX"),
    YGYX("O","XXX"),
    YXHD("Q","XXX"),
    JCKJ("S","XXX");


    String platformCode;
    String platformName;

    PlatformEnum(String platformCode,String platformName){
        this.platformCode = platformCode;
        this.platformName = platformName;
    }

    public static String getPlatformName(String platformCode) {
        for (PlatformEnum platformEnum : PlatformEnum.values()) {
            if (platformEnum.getPlatformCode().equals(platformCode.toUpperCase())) {
                return platformEnum.getPlatformName();
            }
        }
        return "未知";
    }

}
